<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2014.07.11.
   前台路由配置文件($$)*/

!defined('Q_PATH') && exit;

// 自定义路由配置
$arrMyappRouters=array(
	/* 一般URL */
	'/^company\/(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)$/'=>'company/index?did=:1&hid=:2&bid=:3&cid=:4&sid=:5&page=:6',
	'/^cases\/(\d+)-(\d+)-(\d+)-(\d+)-(\d+)$/'=>'cases/index?spid=:1&stid=:2&pid=:3&aid=:4&page=:5',
	'/^events_(\d+)$/'=>'events/index?page=:1',
	'/^biddings_(\d+)$/'=>'biddings/index?page=:1',
	'/^bidding-(\d+)$/'=>'biddings/show?id=:1',
	'/^about$/'=>'shop/about',
	'/^services$/'=>'shop/services',
	'/^order$/'=>'shop/order',
	'/^map$/'=>'shop/map',
	'/^contact$/'=>'shop/contact',
	'/^business$/'=>'shop/business',
	'/^honor$/'=>'shop/honor',
	'/^comment$/'=>'shop/comment',
	'/^addcomment$/'=>'shop/addcomment',
	'/^comment_(\d+)$/'=>'shop/comment?page=:1',
	'/^guestbook$/'=>'shop/guestbook',
	'/^addguestbook$/'=>'shop/addguestbook',
	'/^guestbook_(\d+)$/'=>'shop/guestbook?page=:1',
	'/^case$/'=>'shop/case_',
	'/^case_(\d+)$/'=>'shop/case_?page=:1',
	'/^case-(\d+)$/'=>'shop/case_show?id=:1',
	'/^room$/'=>'shop/room',
	'/^room_(\d+)$/'=>'shop/room?page=:1',
	'/^room-(\d+)$/'=>'shop/room_show?id=:1',
	'/^event$/'=>'shop/event',
	'/^event_(\d+)$/'=>'shop/event?page=:1',
	'/^event-(\d+)$/'=>'shop/event_show?id=:1',
	'/^video$/'=>'shop/video',
	'/^video_(\d+)$/'=>'shop/video?page=:1',
	'/^video-(\d+)$/'=>'shop/video_show?id=:1',
	'/^build$/'=>'shop/build',
	'/^build_(\d+)$/'=>'shop/build?page=:1',
	'/^build-(\d+)$/'=>'shop/build_show?id=:1',
	'/^buildorder_(\d+)$/'=>'shop/buildorder?id=:1',
	'/^package$/'=>'shop/package',
	'/^package_(\d+)$/'=>'shop/package?page=:1',
	'/^package-(\d+)$/'=>'shop/package_show?id=:1',
	'/^team$/'=>'shop/team',
	'/^team-(\d+)$/'=>'shop/team_show?id=:1',
	'/^anli$/'=>'shop/anli',
	'/^anli_(\d+)$/'=>'shop/anli?page=:1',
	'/^diary$/'=>'shop/diary',
	'/^diary_(\d+)$/'=>'shop/diary?page=:1',
	'/^shoprank$/'=>'public/shoprank',
	'/^shoplevel$/'=>'public/shoplevel',
	'/^freeroom$/'=>'public/freeroom',
	'/^freedesign$/'=>'public/freedesign',
	'/^freerate$/'=>'public/freerate',
	'/^freeplan$/'=>'public/freeplan',
	'/^free5quality$/'=>'public/free5quality',
	'/^freethree$/'=>'public/freethree',
	'/^freesoftdesign$/'=>'public/freesoftdesign',
	'/^advpayment$/'=>'public/advpayment',
	'/^satispayment$/'=>'public/satispayment',
	'/^cp-verify$/'=>'public/cp_verify',
	'/^cs-verify$/'=>'public/cs_verify',
	'/^rl-verify$/'=>'public/rl_verify',
	'/^shopscore$/'=>'public/shopscore',
	'/^vip$/'=>'public/vip',
	'/^ad$/'=>'public/ad',
	'/^job$/'=>'public/job',
	'/^join$/'=>'public/join',
	'/^tools$/'=>'tools/index',
	/* 学装修 */
	'/^xue-(\d+)$/'=>'xue/show?id=:1',
	'/^category\/(\S+)_(\d+)$/'=>'xue/index?cid=:1&page=:2',
	'/^category\/(\S+)$/'=>'xue/index?cid=:1',
	/* 装修百科 */
	'/^baike-(\d+)$/'=>'baike/show?id=:1',
	'/^baike\/(\S+)_(\d+)$/'=>'baike/index?cid=:1&page=:2',
	'/^baike\/(\S+)$/'=>'baike/index?cid=:1',
	/* 装修资讯 */
	'/^new-(\d+)$/'=>'new/show?id=:1',
	'/^new\/(\S+)_(\d+)$/'=>'new/index?cid=:1&page=:2',
	'/^new\/(\S+)$/'=>'new/index?cid=:1',
	/* 装修大片 */
	'/^photo-(\d+)$/'=>'photo/show?id=:1',
	'/^photo\/(\d+)-(\d+)-(\d+)-(\d+)$/'=>'photo/index?spid=:1&stid=:2&site_id=:3&page=:4',
);

// 读取前台应用基本路由配置
$arrFrontapprouters=(array)require(WINDSFORCE_PATH.'/System/common/Router.php');

return array_merge($arrMyappRouters,$arrFrontapprouters);
